package com.community.contorller;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.community.dto.OwnerDTO;
import com.community.po.OwnerPO;
import com.community.service.OwnerService;
import com.lening.common.base.BaseController;
import com.community.dto.MemberDTO;
import com.community.po.MemberPO;
import com.community.service.MemberService;
import com.lening.common.web.Result;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ToDo:
 * @Author：高尚磊
 * @date: 2024/6/4 17:16
 */
@Slf4j
@RestController
@RequestMapping("member")
public class MemberController extends BaseController<MemberPO, MemberDTO, MemberService> {
//    @Autowired(required = false)
//    private MemberService memberService;
//    @GetMapping("getAll")
//    public Result<?> getAllMember(MemberDTO memberDTO){
//        Page<MemberDTO> page =memberService.getAllMember(memberDTO);
//        return Result.ok(page);
//    }
//    //    根据id查询
//    @GetMapping("getId/{id}")
//    public Result<?> getMemberId(@PathVariable("id") Long id){
//        MemberPO list = memberService.getMemberId(id);
//        return Result.ok(list);
//    }
}
